﻿'Params
'user (Required) : The Last.fm username.
'userecs (Optional) : 0 or 1. If 1, the feed contains new releases based on Last.fm's artist recommendations for this user. Otherwise, it is based on their library (the default).
'api_key (Required) : A Last.fm API key.

'Auth
' This service does not require authentication. 

Public Class UserGetNewReleases
	Inherits BaseRequest
    Dim user As String = ""
    Dim userecs As String = ""


	Public xmlresponse As XDocument = Nothing

    Public Sub New(user As String, userecs As String)
        Me.user = user
        Me.userecs = userecs

    End Sub

	Public Sub sendRequest()
        InitializeMembers("user.getNewReleases")

        AddMember("user", user, True)
        AddMember("userecs", userecs, False)
        AddMember("api_key", My.Settings.api_key, False)

        xmlresponse = sendPOSTResponse()
	End Sub

	'	Public Function getResponse() As AlbumGetInfoResponse
	'	Dim response As New AlbumGetInfoResponse
	'		response.album = New Album(xmlresponse.<lfm>.<album>.First)
	'		Return response
	'	End Function
End Class
